import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import "@/assets/main.scss"

const app = createApp(App)

app.use(router)

app.use(ElementPlus, {
  locale: zhCn,
})

app.mount('#app')

app.config.globalProperties.$message = ElMessage

// 配置全局消息样式
ElMessage.defaults = {
  showClose: false,
  duration: 2000,
  customClass: 'custom-message',
  type: 'success'
}

// 配置全局消息样式
ElMessage.defaults = {
  showClose: false,
  duration: 2000,
  customClass: 'custom-message',
  iconClass: 'custom-icon'
}
